<!DOCTYPE html>
<html ng-app="shell_executor">

<head>
<meta charset="UTF-8">
<title>服务端执行shell脚本</title>
<link rel="icon" href="./img/config.png">
<link rel="stylesheet" type="text/css" href="../vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="../vendor/angular/angular-toastr-1.4.1.min.css">
<link rel="stylesheet" type="text/css" href="../vendor/select2/select2.min.css">
<link rel="stylesheet" type="text/css" href="../vendor/jquery-plugin/textareafullscreen.css">
<link rel="stylesheet" type="text/css" media='all' href="../vendor/angular/loading-bar.min.css">
<link rel="stylesheet" type="text/css" href="../styles/common-style.css">
</head>

<body>
	<div class="container-fluid" ng-controller="ShellExecutorController">
		<div class="row">
	        <div class="col-md-8 col-md-offset-2">
	            <div class="panel">
	                <header class="panel-heading">
	                    执行shell命令
	                    <small>
	                        （将浏览器输入shell命令提交到远程服务端执行）
	                    </small>
	                </header>
	
	                <form class="form-horizontal panel-body" name="appForm" ng-submit="executeCommand()">
	                    <div class="form-group">
	                        <label class="col-sm-2 control-label">
	                        <apollorequiredfield></apollorequiredfield>
	                            shell命令</label>
	                        <div class="col-sm-5">
	                            <input type="text" class="form-control" name="cmd" ng-model="shell_executor.cmd" required>
	                        </div>
	                    </div>
	                    <div class="form-group">
	                        <div class="col-sm-offset-2 col-sm-9">
	                            <button type="submit" class="btn btn-primary" ng-disabled="commandExecutorBtnDisabled">提交
	                            </button>
	                        </div>
	                    </div>
	                </form>
					<div class="panel-body">
						<p ng-bind-html="result"></p>
					</div>
	            </div>
	        </div>
	    </div>
	</div>
	<!-- jquery.js -->
	<script src="../vendor/jquery.min.js" type="text/javascript"></script>

	<!--angular-->
	<script src="../vendor/angular/angular.min.js"></script>
	<script src="../vendor/angular/angular-sanitize.min.js"></script>
	<script src="../vendor/angular/angular-route.min.js"></script>
	<script src="../vendor/angular/angular-resource.min.js"></script>
	<script src="../vendor/angular/angular-toastr-1.4.1.tpls.min.js"></script>
	<script src="../vendor/angular/loading-bar.min.js"></script>

	<!--valdr-->
	<script src="../vendor/valdr/valdr.min.js" type="text/javascript"></script>
	<script src="../vendor/valdr/valdr-message.min.js" type="text/javascript"></script>

	<!-- bootstrap.js -->
	<script src="../vendor/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>

	<script src="../vendor/lodash.min.js"></script>

	<script src="../vendor/select2/select2.min.js" type="text/javascript"></script>

	<script type="application/javascript" src="../scripts/app.js"></script>
	
	<script type="application/javascript" src="../scripts/services/ShellExecutorService.js"></script>

	<script type="application/javascript" src="../scripts/AppUtils.js"></script>

	<script type="application/javascript" src="../scripts/PageCommon.js"></script>
	
	<script type="application/javascript" src="../scripts/directive/directive.js"></script>
	
	<!-- <script type="application/javascript" src="../scripts/valdr.js"></script> -->
	
	<script type="application/javascript" src="../scripts/controller/ShellExecutorController.js"></script>
</body>
</html>